<?php

namespace App\Formats;

use App\Common\Libs\ArrayHelper;
use App\Models\Select\UserSelect;

class UserFormat extends BaseFormat
{
    public static function getUserArr($userIds, $selectScene = UserSelect::SELF_LIST)
    {
        $users = repository()->UserRepository
            ->getUserByUserIdArr($userIds, $selectScene);

        return ArrayHelper::index($users, 'user_id');
    }
}
